package com.a214.yxz.yuejian013.Activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.a214.yxz.yuejian013.R;

public class UserSettingCleanCachActivity extends AppCompatActivity {


    private ImageButton return_btn;
    private LinearLayout picCach, videoCach;
    private TextView picSize, videoSize;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_setting_clean_cach);

        return_btn = (ImageButton) findViewById(R.id.user_setting_cleanCach_return_btn);
        picCach = (LinearLayout) findViewById(R.id.user_setting_cleanCach_picCach);
        videoCach = (LinearLayout) findViewById(R.id.user_setting_cleanCach_videoCach);
        picSize = (TextView) findViewById(R.id.user_setting_cleanCach_picCach_size);
        videoSize = (TextView) findViewById(R.id.user_setting_cleanCach_videoCach_size);

        return_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        picCach.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //操作
                picSize.setText("0MB");
                Toast.makeText(UserSettingCleanCachActivity.this, "清除成功！", Toast.LENGTH_SHORT).show();
            }
        });
        videoCach.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //操作
                videoSize.setText("0MB");
                Toast.makeText(UserSettingCleanCachActivity.this, "清除成功！", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
